package cn.ipanel.bigdata.boot.source

import cn.ipanel.bigdata.boot.config.Configuration

/**
 * Author: lzz
 * Date: 2021/11/19 9:35
 */
trait File {

  private[this] lazy final val pathname = Configuration.getHdfsPath(getGenre).pathname

  def getGenre: String
  def getPathname: String = pathname

  override def toString: String = s"$getGenre.$getPathname@${Integer.toHexString(hashCode)}"
}